package adapterPattern;

public class Demo {
    public static void main(String[] args) {
        SquarePeg smallPeg = new SquarePeg(5);
        SquarePeg largePeg = new SquarePeg(20);
        SquarePegadapter smallPegadapter = new SquarePegadapter(smallPeg);
        SquarePegadapter largePegadapter = new SquarePegadapter(largePeg);
        RoundHole hole = new RoundHole(5);
        System.out.println(hole.fit(smallPegadapter));
        System.out.println(hole.fit(largePegadapter));
    }
}
